from list_tools import *

from list_tools import *

# Basic operations
numbers = [1, 2, 2, 3, 4, 4, 5]
unique = remove_duplicates(numbers)
print(f"Unique: {unique}")  # [1, 2, 3, 4, 5]

reversed_nums = reverse_list(numbers)
print(f"Reversed: {reversed_nums}")

count = count_occurrences(numbers, 2)
print(f"Count of 2: {count}")  # 2

# Advanced operations
list1 = [1, 3, 5, 7]
list2 = [2, 4, 6, 8]
merged = merge_sorted_lists(list1, list2)
print(f"Merged: {merged}")  # [1, 2, 3, 4, 5, 6, 7, 8]

numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
evens, odds = split_even_odd(numbers)
print(f"Evens: {evens}")  # [2, 4, 6, 8]
print(f"Odds: {odds}")    # [1, 3, 5, 7, 9]

list_a = [1, 2, 3, 4, 5]
list_b = [3, 4, 5, 6, 7]
common = find_common_items(list_a, list_b)
print(f"Common: {common}")  # [3, 4, 5]

items = [1, 2, 3, 4, 5, 6, 7, 8, 9]
chunks = chunk_list(items, 3)
print(f"Chunks: {chunks}")  # [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
